package at.codejedi.sto.model.combat;

import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class Entry {
	private String damageSourceName;
	private String damageType;
	private String fromType;
	private String modifier;
	private double netDamage;
	private String playerName;
	private double rawDamage;
	private String skillName;
	private String skillReference;
	private Calendar time;
	private String toName;
	private String toType;

	private String uuid;

	public String getDamageSourceName() {
		return damageSourceName;
	}

	public String getDamageType() {
		return damageType;
	}

	public String getFromType() {
		return fromType;
	}

	public String getModifier() {
		return modifier;
	}

	public double getNetDamage() {
		return netDamage;
	}

	public String getPlayerName() {
		return playerName;
	}

	public double getRawDamage() {
		return rawDamage;
	}

	public String getSkillName() {
		return skillName;
	}

	public String getSkillReference() {
		return skillReference;
	}

	@Column
	@Temporal(TemporalType.TIMESTAMP)
	public Calendar getTime() {
		return time;
	}

	public String getToName() {
		return toName;
	}

	public String getToType() {
		return toType;
	}

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "uuid", unique = true)
	public String getUuid() {
		return uuid;
	}

	public void setDamageSourceName(String damageSourceName) {
		this.damageSourceName = damageSourceName;
	}

	public void setDamageType(String damageType) {
		this.damageType = damageType;
	}

	public void setFromType(String fromType) {
		this.fromType = fromType;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public void setNetDamage(double netDamage) {
		this.netDamage = netDamage;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	public void setRawDamage(double rawDamage) {
		this.rawDamage = rawDamage;
	}

	public void setSkillName(String skillName) {
		this.skillName = skillName;
	}

	public void setSkillReference(String skillReference) {
		this.skillReference = skillReference;
	}

	public void setTime(Calendar time) {
		this.time = time;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}

	public void setToType(String toType) {
		this.toType = toType;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
}
